Improve GDB symbol export.
authorPaul Eggert <eggert@cs.ucla.edu>
Fri, 27 Jul 2012 06:18:36 +0000 (23:18 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Fri, 27 Jul 2012 06:18:36 +0000 (23:18 -0700)
commitfe3691ca972b3007936a54ba8c38f2b08b05e2b0
tree85b4dc41f0bc811816e55a41cbb29e9b930bbb3c
parent2d28d0b8aaacb4716f8ca95c01ddfc0c060c4d1f
Improve GDB symbol export.

* .gdbinit (xgetptr, xgetint, xgettype): Set $bugfix in different
arms of an 'if', not using conditional expressions; otherwise GDB
complains about the types in the unevaluated arm when the argument
is an integer literal.
(xgetint): Simplify expression.
* alloc.c (gdb_make_enums_visible): New constant.  This ports to
GCC 3.4.2 the export of symbols to GDB.  Problem reported by Eli
Zaretskii in <http://bugs.gnu.org/12036#13>.
* lisp.h (PUBLISH_TO_GDB): Remove.  All uses removed.  No longer
needed now that we have gdb_make_enums_visible.
(enum CHECK_LISP_OBJECT_TYPE, enum Lisp_Bits, enum More_Lisp_Bits)
(enum enum_USE_LSB_TAG):
New enum types, packaging up enums that need to be exported to GDB.
src/.gdbinit
src/ChangeLog
src/alloc.c
src/lisp.h